package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/7 0007.
 */

public class UserInfo implements Parcelable {

    private String id;
    private String username;
    private String nickname;
    private int is_bind_mobile;
    private int is_box_real_name;
    private int is_game_real_name;
    private String avatar;


    public UserInfo(){}

    protected UserInfo(Parcel in) {
        id = in.readString();
        username = in.readString();
        nickname = in.readString();
        is_bind_mobile = in.readInt();
        is_box_real_name = in.readInt();
        is_game_real_name = in.readInt();
        avatar = in.readString();
    }

    public static final Creator<UserInfo> CREATOR = new Creator<UserInfo>() {
        @Override
        public UserInfo createFromParcel(Parcel in) {
            return new UserInfo(in);
        }

        @Override
        public UserInfo[] newArray(int size) {
            return new UserInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(username);
        dest.writeString(nickname);
        dest.writeInt(is_bind_mobile);
        dest.writeInt(is_box_real_name);
        dest.writeInt(is_game_real_name);
        dest.writeString(avatar);

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getIs_bind_mobile() {
        return is_bind_mobile;
    }

    public void setIs_bind_mobile(int is_bind_mobile) {
        this.is_bind_mobile = is_bind_mobile;
    }

    public int getIs_box_real_name() {
        return is_box_real_name;
    }

    public void setIs_box_real_name(int is_box_real_name) {
        this.is_box_real_name = is_box_real_name;
    }

    public int getIs_game_real_name() {
        return is_game_real_name;
    }

    public void setIs_game_real_name(int is_game_real_name) {
        this.is_game_real_name = is_game_real_name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public static Creator<UserInfo> getCREATOR() {
        return CREATOR;
    }
}
